-- GENERATED SPELL FOR [Phantasmal Watcher] --


function spell0_16311(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16311', 3000, 1)
end

function Sorts_16311(pUnit, Event)
local choix_sorts_16311 = math.random(0, 0)
if choix_sorts_16311 == 0 then
pUnit:RegisterEvent('spell0_16311', 1, 1)
end
end

function mob16311_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16311', math.random(1500, 3000), 1)
end

function mob16311_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16311_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16311_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16311, 1, 'mob16311_Action')
RegisterUnitEvent(16311, 2, 'mob16311_Leave')
RegisterUnitEvent(16311, 3, 'mob16311_Kill')
RegisterUnitEvent(16311, 4, 'mob16311_Die')
